# -*- coding: utf-8 -*- #

# ------------------------------------------------------------------
# File Name:        pool.py
# Author:           630
# Updated:          2024/01/07
# ------------------------------------------------------------------

from abc import abstractmethod


# 对象池抽象类
class Pool:
    @abstractmethod
    def capacity(self):
        print(f"{type(self).__name__}类 准备获取当前容量")
        pass

    @abstractmethod
    def find(self, name):
        print(f"{type(self).__name__}类 准备获取某个对象 => {name}")
        pass
